package com.samphanie.ane.app

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.samphanie.ane.app.demo.log.AneLogDemoActivity
import com.samphanie.ane.app.demo.refresh.AneRefreshDemoActivity
import com.samphanie.ane.app.demo.tab.AneTabBottomDemoActivity
import com.samphanie.ane.ui.tab.bottom.AneTabBottom
import com.samphanie.ane.ui.tab.bottom.AneTabBottomInfo

class MainActivity : AppCompatActivity(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

//        val tabBottom = findViewById<AneTabBottom>(R.id.tab_bottom)
//        val homeInfo = AneTabBottomInfo(
//            "首页",
//            "font/iconfont.ttf",
//            getString(R.string.if_home),
//            null,
//            "#ff656667",
//            "#ffd44949"
//        )
//        tabBottom.setAneTabInfo(homeInfo);
    }

    override fun onClick(v: View?) {
        when(v!!.id) {
            R.id.tv_ane_refresh -> {
                startActivity(Intent(this, AneRefreshDemoActivity::class.java))
            }
            R.id.tv_tab_bottom -> {
                startActivity(Intent(this, AneTabBottomDemoActivity::class.java))
            }
        }
    }
}